// eslint-disable-next-line
import { UserLayout, BasicLayout, BlankLayout, } from '@/layouts'
import {
  bxAnaalyse,
  pointSvg,
  dashboardIndex,
  caiwu,
  jiaowu,
  jiaxiaotong,
  xiaoshou,
  companySetting,
  appCenter
} from '@/core/icons'
const RouteView = {
  name: 'RouteView',
  render: (h) => h('router-view')
}
export const asyncRouterMap = [
  {
    path: '/',
    name: 'index',
    component: BasicLayout,
    meta: { title: '首页' },
    redirect: '/dashboard/Analysis',
    children: [
      // dashboard
      {
        path: '/dashboard',
        name: 'dashboard',
        redirect: '/dashboard/Analysis',
        component: RouteView,
        hideChildrenInMenu: true,
        meta: { title: '中心首页', icon: dashboardIndex, permission: ['Analysis'] },
        children: [
          {
            path: '/dashboard/Analysis',
            name: 'Analysis',
            component: () => import('@/views/dashboard/Analysis'),
            meta: { title: '中心首页', keepAlive: false, permission: ['Analysis'] }
          },
          {
            path: '/account/center',
            name: 'center',
            component: () => import('@/views/account/center/Index'),
            meta: { title: '个人中心', hidden: true, permission: ['center'] }
          },
          {
            path: '/download/center',
            name: 'downloadcenter',
            component: () => import('@/views/download/index'),
            meta: { title: '导入中心', hidden: true, permission: ['downloadcenter'] }
          },
        ]
      },
      //销售中心【招生管理】
      {
        path: '/sales',
        name: 'sales_indx',
        component: RouteView,
        meta: { title: '招生管理', icon: xiaoshou, permission: ['sales_indx'] },
        redirect: '/sales/studentFile',
        children: [
          {
            path: '/finance/apply',
            name: 'apply',
            component: () => import('@/views/finance/apply'),
            meta: { title: '办理报名/续费', icon: pointSvg, permission: ['apply'] }
          },
          {
            path: '/sales/studentFile',
            name: 'student_file',
            component: () => import('@/views/sales/studentFile.vue'),
            meta: { title: '意向学员', icon: pointSvg, hideHeader: true, permission: ['student_file'] },
            redirect: '/sales/studentFileExpand/potentialStudent',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/sales/studentFileExpand/potentialStudent',
                name: 'potential_student',
                component: () => import('@/views/sales/studentFileExpand/potentialStudent'),
                meta: { title: '潜在学员', hidden: true, permission: ['potential_student'] }
              },
              {
                path: '/sales/studentFileExpand/readingStudent',
                name: 'reading_student',
                component: () => import('@/views/sales/studentFileExpand/readingStudent'),
      
                meta: { title: '在读学员', hidden: true, permission: ['reading_student'] }
              },
              {
                path: '/sales/studentFileExpand/pastStudent',
                name: 'past_student',
                component: () => import('@/views/sales/studentFileExpand/pastStudent'),
                meta: { title: '历史学员', hidden: true, permission: ['past_student'] }
              }
            ]
          },
          {
            path: '/sales/listen/index',
            name: 'listen_index',
            component: () => import('@/views/sales/listen/index'),
            meta: { title: '试听记录', icon: pointSvg, permission: ['listen_index'] }
          },
      
          {
            path: '/sales/renewalReminder/index',
            name: 'renewalReminder_index',
            component: () => import('@/views/sales/renewalReminder/index'),
            meta: { title: '续费预警', icon: pointSvg, permission: ['renewalReminder_index'] }
          }
        ]
      },
      //教务中心
      {
        path: '/educationalCenter',
        name: 'educationalCenterGroup',
        component: RouteView,
        meta: { title: '教务中心', icon: jiaowu, permission: ['educationalCenterGroup'] },
        redirect: '/educationalCenter/student',
        children: [
          {
            path: '/educationalCenter/student',
            name: 'classRecond_index',
            component: () => import('@/views/educationalCenter/student'),
            meta: { title: '学员管理', icon: pointSvg, hideHeader: true, permission: ['classRecond_index'] },
            redirect: '/educationalCenter/studentExpand/list',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/studentExpand/list',
                name: 'student_list',
                component: () => import('@/views/educationalCenter/studentExpand/list'),
                meta: { title: '学员管理', hidden: true, permission: ['student_list'] }
              },
              {
                path: '/educationalCenter/studentExpand/student_sign_info_list',
                name: 'student_sign_info_list',
                component: () => import('@/views/educationalCenter/studentExpand/student_sign_info_list'),
                meta: { title: '报读情况', hidden: true, permission: ['student_sign_info_list'] }  
              },
              {
                path: '/educationalCenter/studentExpand/sendMessage',
                name: 'student_sendMessage',
                component: () => import('@/views/educationalCenter/studentExpand/sendMessage'),
                meta: { title: '发送信息', hidden: true, permission: ['student_sendMessage'] }
              },
              {
                path: '/educationalCenter/studentExpand/studentInfo',
                name: 'student_Info',
                component: () => import('@/views/educationalCenter/studentExpand/studentInfo'),
                meta: { title: '学员信息', hidden: true, permission: ['student_Info'] }
              },
              {
                path: '/educationalCenter/studentExpand/changeImportHour',
                name: 'change_import_hour',
                component: () => import('@/views/educationalCenter/studentExpand/changeImportHour'),
                meta: { title: '修正剩余课时', hidden: true, permission: ['change_import_hour'] }
              },
              {
                path: '/educationalCenter/studentExpand/batchClearCourseHour',
                name: 'batch_clear_course_hour',
                component: () => import('@/views/educationalCenter/studentExpand/batchClearCourseHour'),
                meta: { title: '批量课时清零', hidden: true, permission: ['batch_clear_course_hour'] }
              }
            ]
          },
          {
            path: '/educationalCenter/class',
            name: 'class',
            component: () => import('@/views/educationalCenter/class'),
            meta: { title: '班级管理', icon: pointSvg, permission: ['class'] },
            redirect: '/educationalCenter/classExpand/list',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/classExpand/list',
                name: 'class_list',
                component: () => import('@/views/educationalCenter/classExpand/list'),
                meta: { title: '班级管理', hidden: true, permission: ['class_list'] }
              },
              {
                path: '/educationalCenter/classExpand/oneByOne',
                name: 'class_oneByOne',
                component: () => import('@/views/educationalCenter/classExpand/oneByOne'),
                meta: { title: '一对一', hidden: true, permission: ['class_oneByOne'] }
              },
              {
                path: '/educationalCenter/classExpand/info',
                name: 'class_info',
                component: () => import('@/views/educationalCenter/classExpand/info'),
                meta: { title: '班级详情', hidden: true, permission: ['class_info'] }
              },
              {
                path: '/educationalCenter/classExpand/orderName',
                name: 'orderName',
                component: () => import('@/views/educationalCenter/classExpand/orderName'),
                meta: { title: '班级点名', hidden: true, permission: ['orderName'] }
              },
            ]
          },
          //课表
          {
            path: '/educationalCenter/lessonTable',
            name: 'lesson_table',
            component: () => import('@/views/educationalCenter/lessonTable'),
            meta: { title: '课表管理', icon: pointSvg, permission: ['lesson_table'] },
            redirect: '/educationalCenter/lessonTable/lessonTableTime',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/lessonTable/lessonTableTime',
                name: 'lesson_table_time',
                component: () => import('@/views/educationalCenter/lessonTable/lessonTableTime'),
                meta: { title: '时间课表', hidden: true, permission: ['lesson_table_time'] }
              },
              {
                path: '/educationalCenter/lessonTable/lessonTableTeacher',
                name: 'lesson_table_teacher',
                component: () => import('@/views/educationalCenter/lessonTable/lessonTableTeacher'),
                meta: { title: '老师课表', hidden: true, permission: ['lesson_table_teacher'] }
              },
              {
                path: '/educationalCenter/lessonTable/lessonTableClass',
                name: 'lesson_table_class',
                component: () => import('@/views/educationalCenter/lessonTable/lessonTableClass'),
                meta: { title: '教室课表', hidden: true, permission: ['lesson_table_class'] }
              },
              {
                path: '/educationalCenter/lessonTable/lessonTableMonth',
                name: 'lesson_table_month',
                component: () => import('@/views/educationalCenter/lessonTable/lessonTableMonth'),
                meta: { title: '每月课表', hidden: true, permission: ['lesson_table_month'] }
              }
            ]
          },
          {
            path: '/educationalCenter/teacherList',
            name: 'teacherCollect',
            component: () => import('@/views/educationalCenter/teacherList'),
            meta: { title: '教师管理', icon: pointSvg, hideHeader: true, permission: ['teacherCollect'] },
            redirect: '/educationalCenter/teacher/teacher',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/teacher/teacher',
                name: 'teacher',
                component: () => import('@/views/educationalCenter/teacher/teacher'),
                meta: { title: '教师管理', hidden: true, permission: ['teacher'] }
              },
              {
                path: '/educationalCenter/teacher/teacherInfo',
                name: 'teacherInfo',
                component: () => import('@/views/educationalCenter/teacher/teacherInfo'),
                meta: { title: '教师详情', hidden: true, permission: ['teacherInfo'] }
              }
            ]
          },
          {
            path: '/educationalCenter/courseCharge',
            name: 'course_charge',
            component: () => import('@/views/educationalCenter/courseCharge'),
            meta: { title: '课程管理', icon: pointSvg, hideHeader: true, permission: ['course_charge'] },
            redirect: '/educationalCenter/courseChargeExpand/course',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/courseChargeExpand/course',
                name: 'course_list',
                component: () => import('@/views/educationalCenter/courseChargeExpand/course'),
                meta: { title: '课程', hidden: true, permission: ['course_list'] }
              },
              {
                path: '/educationalCenter/addCourse',
                name: 'course_create',
                component: () => import('@/views/educationalCenter/addCourse'),
                meta: { title: '新建课程', hidden: true, permission: ['course_create'] }
              },
              {
                path: '/educationalCenter/editCourse',
                name: 'course_edit',
                component: () => import('@/views/educationalCenter/editCourse'),
                meta: { title: '编辑课程', hidden: true, permission: ['course_edit'] }
              },
            ]
          },
          {
            path: '/educationalCenter/courseCharge1',
            name: 'course_charge1',
            component: () => import('@/views/educationalCenter/courseCharge1'),
            meta: { title: '物品/费用', icon: pointSvg, hideHeader: true, permission: ['course_charge'] },
            redirect: '/educationalCenter/courseChargeExpand/items',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/courseChargeExpand/items',
                name: 'items_list',
                component: () => import('@/views/educationalCenter/courseChargeExpand/items'),
                meta: { title: '物品', hidden: true, permission: ['items_list'] }
              },
              {
                path: '/educationalCenter/courseChargeExpand/cost',
                name: 'cost_list',
                component: () => import('@/views/educationalCenter/courseChargeExpand/cost'),
                meta: { title: '费用', hidden: true, permission: ['cost_list'] }
              },
              // {
              //   path: '/educationalCenter/courseChargeExpand/combo',
              //   name: 'combo_list',
              //   component: () => import('@/views/educationalCenter/courseChargeExpand/combo'),

              //   meta: { title: '套餐', hidden: true, permission: ['combo_list'] }
              // }
            ]
          },
          {
            path: '/educationalCenter/classRecondList',

            name: 'classRecondList_index',
            component: () => import('@/views/educationalCenter/classRecondList'),

            meta: { title: '上课记录', icon: pointSvg, hideHeader: true, permission: ['classRecondList_index'] },
            redirect: '/educationalCenter/classRecond/callTheRoll',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/educationalCenter/classRecond/callTheRoll',
                name: 'call_the_roll',
                component: () => import('@/views/educationalCenter/classRecond/callTheRoll'),
                meta: { title: '点名记录', hidden: true, permission: ['call_the_roll'] }
              },
              {
                path: '/educationalCenter/classRecond/missLesson',
                name: 'miss_lesson',
                component: () => import('@/views/educationalCenter/classRecond/missLesson'),
                meta: { title: '缺课补课', hidden: true, permission: ['miss_lesson'] }
              }
            ]
          },
          {
            path: '/appCenter/cardClockIn',
            name: 'cardClockIn',
            component: () => import('@/views/appCenter/cardClockIn'),
            meta: { title: '学员考勤', icon: pointSvg, hideHeader: true, permission: ['cardClockIn'] },
            redirect: '/appCenter/cardClockInExpand/byCard',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/appCenter/addFaceExpand/faceList',
                name: 'faceList',
                component: () => import('@/views/appCenter/addFace/index'),
                meta: { title: '人脸考勤', hidden: true, permission: ['addFaceExpand'] }
              },
              {
                path: '/appCenter/cardClockInExpand/byCard',
                name: 'byCard',
                component: () => import('@/views/appCenter/cardClockInExpand/byCard'),
                meta: { title: '考勤打卡', hidden: true, permission: ['byCard'] }
              },
              {
                path: '/appCenter/cardClockInExpand/byCardList',
                name: 'byCardList',
                component: () => import('@/views/appCenter/cardClockInExpand/byCardList'),
                meta: { title: '考勤记录', hidden: true, permission: ['byCardList'] }
              }
            ]
          },
          // {
          //   path: '/appCenter/addFaceExpand',
          //   name: 'addFaceExpand',
          //   component: () => import('@/views/appCenter/addFaceExpand'),
          //   meta: { title: '人脸考勤', icon: pointSvg, hideHeader: true, permission: ['addFaceExpand'] },
          //   redirect: '/appCenter/addFaceExpand/faceList',
          //   hideChildrenInMenu: true,
          //   children: [
          //       {
          //       path: '/appCenter/addFaceExpand/faceList',
          //       name: 'faceList',
          //       component: () => import('@/views/appCenter/addFace/index'),
          //       meta: { title: '人脸考勤', hidden: true, permission: ['faceList'] }
          //     },
          //   ]
          // },
        ]
      },
      // =================================家校互动======================
      {
        path: '/homeSchool',
        name: 'homeSchool',
        component: RouteView,
        meta: { title: '家校互动', icon: jiaxiaotong, permission: ['homeSchool'] },
        redirect: '/homeSchool/homework',
        children: [
          {
            path: '/homeSchool/homework',
            name: 'homework',
            component: () => import('@/views/homeSchool/homework'),
            meta: { title: '学习计划', icon: pointSvg, hideHeader: true, permission: ['homework'] },
            redirect: '/homeSchool/homeworkExpand/list',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/homeSchool/homeworkExpand/list',
                name: 'homeworkList',
                component: () => import('@/views/homeSchool/homeworkExpand/list'),
                meta: { title: '学习计划', hidden: true, permission: ['homeworkList'] }
              },
              {
                path: '/homeSchool/homeworkExpand/create',
                name: 'homeworkCreate',
                component: () => import('@/views/homeSchool/homeworkExpand/create'),
                meta: { title: '发布学习计划', hidden: true, permission: ['homeworkCreate'] }
              },
              {
                path: '/homeSchool/homeworkExpand/clockIn',
                name: 'clockIn',
                component: () => import('@/views/homeSchool/homeworkExpand/clockIn'),
                meta: { title: '布置打卡作业', hidden: true, permission: ['clockIn'] }
              },
              {
                path: '/homeSchool/homeworkExpand/info',
                name: 'homeworkInfo',
                component: () => import('@/views/homeSchool/homeworkExpand/info'),
                meta: { title: '作业详情', hidden: true, permission: ['homeworkInfo'] }
              }
            ]
          },
          // ================================================================================================
          {
            path: '/homeSchool/afterClassComment',
            name: 'CommentAfterClassCont',
            component: () => import('@/views/homeSchool/classComment'),
            meta: { title: '课后点评', icon: pointSvg, hideHeader: true, permission: ['CommentAfterClassCont'] }, //hideHeader:true,
            redirect: '/homeSchool/afterClassComment/studentCommentList',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/homeSchool/afterClassComment/studentCommentList',
                name: 'student_comment',
                component: () => import('@/views/homeSchool/afterClassComment/studentCommentList'),
                meta: { title: '评价学员', hidden: true, permission: ['student_comment'] }
              },
              {
                path: '/homeSchool/afterClassComment/teacherCommentList',
                name: 'teacher_comment',
                component: () => import('@/views/homeSchool/afterClassComment/teacherCommentList'),
                meta: { title: '评价老师', hidden: true, permission: ['teacher_comment'] }
              },
              {
                path: '/homeSchool/afterClassComment/studentCommentrecord',
                name: 'student_comment_record',
                component: () => import('@/views/homeSchool/afterClassComment/studentCommentrecord'),
                meta: { title: '点评记录', hidden: true, permission: ['student_comment_record'] }
              },
              // {
              //   path: '/homeSchool/CommentAfterClassCont/EvaluationRecord',
              //   name: 'EvaluationRecord',
              //   component: () => import('@/views/homeSchool/CommentAfterClassCont/EvaluationRecord'),
              //   meta: { title: '评价记录', hidden: true, permission: ['dashboard'] }
              // }
            ]
          },
          //成绩单
          {
            path: '/homeSchool/score',
            name: 'homeSchool_score',
            component: () => import('@/views/homeSchool/score'),
            meta: { title: '成绩单', icon: pointSvg, hideHeader: true, permission: ['homeSchool_score'] }, //hideHeader:true,
            redirect: '/homeSchool/scoreExpand/reportList',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/homeSchool/scoreExpand/reportList',
                name: 'reportList',
                component: () => import('@/views/homeSchool/scoreExpand/reportList'),
                meta: { title: "成绩单", hidden: true, permission: ['reportList'] }
              },
              {
                path: '/homeSchool/scoreExpand/detailsreport',
                name: 'detail_report',
                component: () => import('@/views/homeSchool/scoreExpand/detailsreport'),
                meta: { title: '成绩单详情', hidden: true, permission: ['detail_report'] }
              },
              {
                path: '/homeSchool/scoreExpand/addreport',
                name: 'add_record',
                component: () => import('@/views/homeSchool/scoreExpand/addreport'),
                meta: { title: '新增成绩单', hidden: true, permission: ['add_record'] }
              },
              {
                path: '/homeSchool/scoreExpand/editreport',
                name: 'edit_record',
                component: () => import('@/views/homeSchool/scoreExpand/editreport'),
                meta: { title: '编辑成绩单', hidden: true, permission: ['edit_record'] }
              }

            ]
          },
          //成长档案
          {
            path: '/homeSchool/growthMenu',
            name: 'growth_Menu',
            component: () => import('@/views/homeSchool/growthMenu'),
            meta: { title: '成长档案', icon: pointSvg, hideHeader: true, permission: ['growth_Menu'] }, //hideHeader:true,
            redirect: '/homeSchool/growthprofile/classgrowth',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/homeSchool/growthprofile/studentgrowth',
                name: 'student_growth',
                component: () => import('@/views/homeSchool/growthprofile/studentgrowth'),
                meta: { title: "成长档案学员", hidden: true, permission: ['student_growth'] }
              },
              {
                path: '/homeSchool/growthprofile/classgrowth',
                name: 'class_growth',
                component: () => import('@/views/homeSchool/growthprofile/classgrowth'),
                meta: { title: "成长档案班级", hidden: true, permission: ['class_growth'] }
              }
            ]
          },
          {
            path: '/homeSchool/messageManage',
            name: 'msgManage',
            component: () => import('@/views/homeSchool/messageManage'),
            meta: { title: '通知管理', icon: pointSvg, hideHeader: true, permission: ['msgManage'] },
            redirect: '/homeSchool/message/index',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/homeSchool/message/index',
                name: 'messageList',
                component: () => import('@/views/homeSchool/message/index'),
                meta: { title: '通知管理', hidden: true, permission: ['messageList'] }
              },
              {
                path: '/homeSchool/message/sendMessage',
                name: 'send_msg',
                component: () => import('@/views/homeSchool/message/sendMessage'),
                meta: { title: '发送消息', hidden: true, permission: ['send_msg'] }
              },
            ]
          },
        ]
      },
      //===================================营销中心====================
      {
        path: '/marketing',
        name: 'marketing',
        component: RouteView,
        meta: { title: '营销中心', icon: caiwu, permission: ['marketing'] },
        redirect: '/marketing/marketExpand/templateStorehouse',
        children: [
          {
            path: '/marketing/marketExpand/templateStorehouse',
            name: 'templateStorehouse',
            component: () => import('@/views/marketing/marketExpand/templateStorehouse'),
            meta: { title: '花朵招生', icon: pointSvg, permission: ['templateStorehouse'] },
          },
          {
            path: '/marketing/market',
            name: 'market',
            component: () => import('@/views/marketing/market'),
            meta: { title: '我的招生', icon: pointSvg, hideHeader: true, permission: ['market'] },
            redirect: '/marketing/marketExpand/mineActivity',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/marketing/marketExpand/mineActivity',
                name: 'mineActivity',
                component: () => import('@/views/marketing/marketExpand/mineActivity'),
                meta: { title: '我的招生活动', hidden: true, permission: ['mineActivity'] }
              },
              {
                path: '/marketing/marketExpand/child/activityTemplateCenter',
                name: 'activityTemplateCenter',
                component: () => import('@/views/marketing/marketExpand/child/activityTemplateCenter'),
                meta: { title: '活动素材中心', hidden: true, permission: ['activityTemplateCenter'] },
              },
              {
                path: '/marketing/marketExpand/child/dataCount',
                name: 'dataCount',
                component: () => import('@/views/marketing/marketExpand/child/dataCount'),
                meta: { title: '数据统计', hidden: true, permission: ['dataCount'] },
              },
            ]
          },
          {
            path: '/marketing/customForm',
            name: 'customForm',
            component: () => import('@/views/marketing/customForm'),
            meta: { title: '花朵表单', icon: pointSvg, hideHeader: true, permission: ['customForm'] },
            redirect: '/marketing/customFormExpand/list',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/marketing/customFormExpand/list',
                name: 'customFormList',
                component: () => import('@/views/marketing/customFormExpand/list'),
                meta: { title: '表单列表', hidden: true, permission: ['customFormList'] }
              },
              {
                path: '/marketing/customFormExpand/custom',
                name: 'custom',
                component: () => import('@/views/marketing/customFormExpand/custom'),
                meta: { title: '自定义表单', hidden: true, permission: ['custom'] },
              },
              {
                path: '/marketing/customFormExpand/dataInfo',
                name: 'dataInfo',
                component: () => import('@/views/marketing/customFormExpand/dataInfo'),
                meta: { title: '数据详情', hidden: true, permission: ['dataInfo'] },
              }
            ]
          },
          // {
          //   path: '/marketing/customForm',
          //   name: 'customForm',
          //   component: () => import('@/views/marketing/customForm'),
          //   meta: { title: '自定义表单', icon: pointSvg, hideHeader: true, permission: ['customForm'] },
          //   redirect: '/marketing/customFormExpand/list',
          //   hideChildrenInMenu: true,
          //   children: [
          //     {
          //       path: '/marketing/customFormExpand/list',
          //       name: 'customFormList',
          //       component: () => import('@/views/marketing/customFormExpand/list'),
          //       meta: { title: '表单列表', hidden: true, permission: ['customFormList'] }
          //     },
          //   ]
          // }
        ]
      },
      // 销售中心
     
      // 云课堂
      // {
      //   path: '/cloudClass',
      //   name: 'cloudClass',
      //   component: RouteView,
      //   meta: { title: '云课堂', icon: caiwu, permission: ['cloudClass'] },
      //   redirect: '/cloudClass/interact',
      //   children: [
      //     {
      //       path: '/cloudClass/interact',
      //       name: 'interactClass',
      //       component: () => import('@/views/cloudClass/interact'),
      //       meta: { title: '互动班课', icon: pointSvg, hideHeader: true, permission: ['interactClass'] },
      //       redirect: '/cloudClass/interactExpand/courseList',
      //       hideChildrenInMenu: true,
      //       children: [
      //         {
      //           path: '/cloudClass/interactExpand/courseList',
      //           name: 'interactCourseList',
      //           component: () => import('@/views/cloudClass/interactExpand/courseList'),
      //           meta: { title: '互动课表', hidden: true, permission: ['interactCourseList'] }
      //         },
      //         {
      //           path: '/cloudClass/interactExpand/accountManage',
      //           name: 'accountManage',
      //           component: () => import('@/views/cloudClass/interactExpand/accountManage'),
      //           meta: { title: '账户管理', hidden: true, permission: ['accountManage'] }
      //         },
      //         {
      //           path: '/cloudClass/interactExpand/createLives',
      //           name: 'createLives',
      //           component: () => import('@/views/cloudClass/interactExpand/createLives'),
      //           meta: { title: '新建直播课', hidden: true, permission: ['createLives'] }
      //         },
      //       ]
      //     },
      //   ]
      // },
      // 财务中心
      {
        path: '/finance',
        name: 'finance',
        component: RouteView,
        meta: { title: '财务中心', icon: caiwu, permission: ['finance'] },
        redirect: '/finance/apply',
        children: [
          {
            path: '/finance/order',
            name: 'order',
            component: () => import('@/views/finance/order'),
            meta: { title: '订单管理', icon: pointSvg, hideHeader: true, permission: ['order'] },
            redirect: '/finance/orderExpand/orderList',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/finance/orderExpand/orderList',
                name: 'orderList',
                component: () => import('@/views/finance/orderExpand/orderList'),
                meta: { title: '订单管理', hidden: true,keepAlive:true, permission: ['orderList'] }
              },
              {
                path: '/finance/orderExpand/orderdetails',
                name: 'orderdetails',
                component: () => import('@/views/finance/orderExpand/orderdetails'),
                meta: { title: '订单详情', hidden: true, permission: ['orderdetails'] }
              },
              {
                path: '/finance/order/receipt',
                name: 'receipt',
                component: () => import('@/views/print/receipt'),
                meta: { title: '打印详情', hidden: true, permission: ['receipt'] }
              },
              {
                path: '/finance/orderExpand/transformCourse',
                name: 'transformCourse',
                component: () => import('@/views/finance/orderExpand/transformCourse'),
                meta: { title: '转课', hidden: true, permission: ['transformCourse'] }
              },
              {
                path: '/finance/orderExpand/returnCourse',
                name: 'returnCourse',
                component: () => import('@/views/finance/orderExpand/returnCourse'),
                meta: { title: '退课', hidden: true, permission: ['returnCourse'] }
              },
              {
                path: '/finance/orderExpand/returnItem',
                name: 'returnItem',
                component: () => import('@/views/finance/orderExpand/returnItem'),
                meta: { title: '退物品', hidden: true, permission: ['returnItem'] }
              },
              {
                path: '/finance/orderExpand/returnCost',
                name: 'returnCost',
                component: () => import('@/views/finance/orderExpand/returnCost'),
                meta: { title: '退费用', hidden: true, permission: ['returnCost'] }
              },

            ]
          },
          {
            path: '/finance/expenses_receipts',
            name: 'expenses_receipts',
            component: () => import('@/views/finance/expenses_receipts'),
            meta: { title: '收支明细', icon: pointSvg, permission: ['expenses_receipts'] },
            redirect: '/finance/expensesExpand/expenses_receipts_list',
            hideChildrenInMenu: true,
            children:[
              {
                path: '/finance/expensesExpand/expenses_receipts_list',
                name: 'expenses_receipts_list',
                component: () => import('@/views/finance/expensesExpand/expenses_receipts_list'),
                meta: { title: '收支明细', hidden: true, permission: ['expenses_receipts_list'] }
              },
              {
                path: '/finance/expensesExpand/tovoid_list',
                name: 'tovoid_list',
                component: () => import('@/views/finance/expensesExpand/tovoid_list'),
                meta: { title: '已作废明细', hidden: true, permission: ['tovoid_list'] }
              }
            ]
          },
          {
            path: '/finance/course_consumption_record',
            name: 'class_cancellation',
            component: () => import('@/views/finance/course_consumption_record'),
            meta: { title: '课消记录', icon: pointSvg, permission: ['class_cancellation'] }
          },
          {
            path: '/finance/school_wallet',
            name: 'school_wallet',
            component: () => import('@/views/finance/school_wallet'),
            meta: { title: '学校钱包', icon: pointSvg, permission: ['school_wallet'] },
            redirect: '/finance/walletExpand/collection_record',
            hideChildrenInMenu: true,
            children:[
              {
                path: '/finance/walletExpand/collection_record',
                name: 'collection_record',
                component: () => import('@/views/finance/walletExpand/collection_record'),
                meta: { title: '收款记录', hidden: true, permission: ['collection_record'] }
              },
              {
                path: '/finance/walletExpand/withdrawal_record',
                name: 'withdrawal_record',
                component: () => import('@/views/finance/walletExpand/withdrawal_record'),
                meta: { title: '提现记录', hidden: true, permission: ['withdrawal_record'] }
              }
            ]
          },
          {
            path: '/finance/wage_settlement',
            name: 'wage_settlement',
            component: () => import('@/views/finance/wage_settlement'),
            meta: { title: '工资结算',keepAlive:true, icon: pointSvg, permission: ['wage_settlement'] },
            redirect: '/finance/wageSettlementExpand/payslip',
            hideChildrenInMenu: true,
            children:[
              {
                path: '/finance/wageSettlementExpand/payslip',
                name: 'payslip',
                component: () => import('@/views/finance/wageSettlementExpand/payslip'),
                meta: { title: '工资条',keepAlive:true, hidden: true, permission: ['payslip'] }
              },
              {
                path: '/finance/wageSettlementExpand/payslip_info/:id',
                name: 'payslip_info',
                component: () => import('@/views/finance/wageSettlementExpand/payslip_info'),
                meta: { title: '结算记录详情', hidden: true, permission: ['payslip_info'] }
              },
              {
                path: '/finance/wageSettlementExpand/set_wage_info',
                name: 'set_wage_info',
                component: () => import('@/views/finance/wageSettlementExpand/set_wage_info'),
                meta: { title: '设置员工工资详情', hidden: true, permission: ['set_wage_info'] }
              },
              {
                path: '/finance/wageSettlementExpand/achievements',
                name: 'achievements',
                component: () => import('@/views/finance/wageSettlementExpand/achievements'),
                meta: { title: '绩效管理', hidden: true, permission: ['achievements'] }
              },
              {
                path: '/finance/wageSettlementExpand/add_settlement/:type',
                name: 'add_settlement',
                component: () => import('@/views/finance/wageSettlementExpand/add_settlement'),
                meta: { title: '新建工资结算', hidden: true, permission: ['add_settlement'] }
              },
              {
                path: '/finance/wageSettlementExpand/set_wage',
                name: 'set_wage',
                component: () => import('@/views/finance/wageSettlementExpand/set_wage'),
                meta: { title: '设置员工工资', hidden: true, permission: ['set_wage'] }
              }
            ]
          },
         
           
        ]
      },
      // 设置
      {
        path: '/setting',
        name: 'settingGroup',
        component: RouteView,
        meta: { title: '机构设置', icon: companySetting, permission: ['settingGroup'] },
        redirect: '/setting/organization',
        children: [
          // organization
          {
            path: '/setting/organizationTable',
            name: 'organization_table',
            component: () => import('@/views/setting/organizationTable'),
            meta: { title: '组织架构', icon: pointSvg, permission: ['organization_table'] }
          },
          {
            path: '/setting/management',
            name: 'user_management',
            component: () => import('@/views/setting/management'),
            meta: { title: '账户管理', hideHeader: true, icon: pointSvg, permission: ['user_management'] },
            redirect: '/setting/user/user_management',
            hideChildrenInMenu: true,
            children: [{
              path: '/setting/user/user_management',
              name: 'userList',
              component: () => import('@/views/setting/user/user_management'),
              meta: { title: '员工管理', hidden: true, permission: ['userList'] }
            },
            
           

            {
              path: '/setting/user/role',
              name: 'role',
              component: () => import('@/views/setting/user/role'),
              meta: { title: '角色管理', hidden: true, permission: ['role'] }
            },
            ]
          },
          {
            path: '/setting/organization',
            name: 'organization',
            component: () => import('@/views/setting/organization/index'),
            meta: { title: '机构展示', hideHeader: true, icon: pointSvg, permission: ['organization'] },
            redirect: '/setting/organization/info',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/setting/organization/info',
                name: 'organizationInfo',
                component: () => import('@/views/setting/organization/info'),
                meta: { title: '基本信息', hidden: true, permission: ['organizationInfo'] }
              },
              {
                path: '/setting/organization/wxBinding',
                name: 'wx_Binding',
                component: () => import('@/views/setting/organization/wxBinding'),

                meta: { title: '微信绑定', hidden: true, permission: ['wx_Binding'] }
              },
              {
                path: '/setting/organization/website',
                name: 'web_site',
                component: () => import('@/views/setting/organization/website'),
                meta: { title: '微信支付', hidden: true, permission: ['web_site'] }
              }
            ]
          },
          {
            path: '/setting/rules',
            name: 'rules',
            component: () => import('@/views/setting/rules'),
            meta: { title: '规则设置', hideHeader: true, icon: pointSvg, permission: ['rules'] },
            redirect: '/setting/rulesExpand/festival',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/setting/rulesExpand/festival',
                name: 'festival_rules',
                component: () => import('@/views/setting/rulesExpand/festival'),
                meta: { title: '节假日设置', hidden: true, permission: ['festival_rules'] }
              },
              {
                path: '/setting/rulesExpand/students',
                name: 'students_rules',
                component: () => import('@/views/setting/rulesExpand/students'),

                meta: { title: '学员信息', hidden: true, permission: ['students_rules'] }
              },
              {
                path: '/setting/rulesExpand/parentsClient',
                name: 'parents_client',
                component: () => import('@/views/setting/rulesExpand/parentsClient'),
                meta: { title: '家长端管理', hidden: true, permission: ['parents_client'] }
              },
              {
                path: '/setting/rulesExpand/shareTemplate',
                name: 'share_template',
                component: () => import('@/views/setting/rulesExpand/shareTemplate'),

                meta: { title: '分享链接模板', hidden: true, permission: ['share_template'] }
              },
              {
                path: '/setting/rulesExpand/teacherClient',
                name: 'teacher_client',
                component: () => import('@/views/setting/rulesExpand/teacherClient'),

                meta: { title: '教师端管理', hidden: true, permission: ['teacher_client'] }
              },
              {
                path: '/setting/rulesExpand/receiptPrint',
                name: 'receipt_print',
                component: () => import('@/views/setting/rulesExpand/receiptPrint'),

                meta: { title: '收据打印', hidden: true, permission: ['receipt_print'] }
              },
              {
                path: '/setting/rulesExpand/config',
                name: 'company_config',
                component: () => import('@/views/setting/rulesExpand/config'),
                meta: { title: '机构设置', hidden: true, permission: ['company_config'] }
              }
            ]
          },
          //短信管理
          {
            path: '/setting/shortMessage',
            name: 'shortMessage',
            component: () => import('@/views/setting/shortMessage'),
            meta: { title: '短信管理', hideHeader: true, icon: pointSvg, permission: ['shortMessage'] },
            // redirect: '/setting/shortMessage/festival',
            hideChildrenInMenu: true,
          }
        ]
      },
      {
        path: '/appCenter',
        name: 'appCenter',
        redirect: '/appCenter/appCenter',
        component: RouteView,
        hideChildrenInMenu: true,
        meta: { title: '应用中心', icon: appCenter, permission: ['appCenter'] },
        children: [
          {
            path: '/appCenter/appCenter',
            name: 'appCenterIndex',
            component: () => import('@/views/appCenter/appCenter'),
            meta: { title: '应用中心', keepAlive: false, permission: ['appCenterIndex'] }
          },
          
          {
            path: '/appCenter/interact',
            name: 'interactClass',
            component: () => import('@/views/appCenter/interact'),
            meta: { title: '云课堂', icon: pointSvg, hideHeader: true, permission: ['interactClass'] },
            redirect: '/appCenter/interactExpand/courseList',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/appCenter/interactExpand/courseList',
                name: 'courseList',
                component: () => import('@/views/appCenter/interactExpand/courseList'),
                meta: { title: '互动课表', hidden: true, permission: ['courseList'] }
              },
              {
                path: '/appCenter/interactExpand/editLives',
                name: 'editLives',
                component: () => import('@/views/appCenter/interactExpand/editLives'),
                meta: { title: '编辑直播课', hidden: true, permission: ['editLives'] }
              }, {
                path: '/appCenter/interactExpand/createLives',
                name: 'createLives',
                component: () => import('@/views/appCenter/interactExpand/createLives'),
                meta: { title: '新建直播课', hidden: true, permission: ['createLives'] }
              }, {
                path: '/appCenter/interactExpand/accountManage',
                name: 'accountManage',
                component: () => import('@/views/appCenter/interactExpand/accountManage'),
                meta: { title: '账户管理', hidden: true, permission: ['accountManage'] }
              },
            ]
          },
        
          {
            path: '/OfficialWebsite/OfficialWebsite',
            name:'OfficialWebsite',
            component: () => import('@/views/OfficialWebsite/OfficialWebsite'),
            meta: { title: '微官网', icon: pointSvg, hideHeader: true, permission: ['OfficialWebsite'] },
            redirect: '/OfficialWebsite/smallWebsiteExpand/smallWebsite',
            hideChildrenInMenu: true,
            children:[
              {
                path: '/OfficialWebsite/smallWebsiteExpand/smallWebsite',
                name: 'smallWebsite',
                component: () => import('@/views/OfficialWebsite/smallWebsiteExpand/smallWebsite'),
                meta: { title: '微官网', hidden: true, permission: ['smallWebsite'] }
              },
              {
                path: '/OfficialWebsite/smallWebsiteExpand/websiteOrganizationInfo',
                name: 'websiteOrganizationInfo',
                component: () => import('@/views/OfficialWebsite/smallWebsiteExpand/websiteOrganizationInfo'),
                meta: { title: '机构信息', hidden: true, permission: ['websiteOrganizationInfo'] }
              },
              {
                path: '/OfficialWebsite/smallWebsiteExpand/marketingInfo',
                name: 'marketingInfo',
                component: () => import('@/views/OfficialWebsite/smallWebsiteExpand/marketingInfo'),
                meta: { title: '营销工具', hidden: true, permission: ['marketingInfo'] }
              },
              {
                path: '/OfficialWebsite/smallWebsiteExpand/websiteCreate',
                name: 'websiteCreate',
                component: () => import('@/views/OfficialWebsite/smallWebsiteExpand/websiteCreate'),
                meta: { title: '微官网创建', hidden: true, permission: ['websiteCreate'] }
              },
              {
                path: '/OfficialWebsite/smallWebsiteExpand/infoCreate',
                name: 'infoCreate',
                component: () => import('@/views/OfficialWebsite/smallWebsiteExpand/infoCreate'),
                meta: { title: '添加信息', hidden: true, permission: ['infoCreate'] }
              }
            ]
          },
          {
            path: '/marketing/customForm',
            name: 'customForm',
            component: () => import('@/views/marketing/customForm'),
            meta: { title: '自定义表单', icon: pointSvg, hideHeader: true, permission: ['customForm'] },
            redirect: '/marketing/customFormExpand/list',
            hideChildrenInMenu: true,
            children: [
              {
                path: '/marketing/customFormExpand/list',
                name: 'customFormList',
                component: () => import('@/views/marketing/customFormExpand/list'),
                meta: { title: '表单列表', hidden: true, permission: ['customFormList'] }
              },
              {
                path: '/marketing/customFormExpand/custom',
                name: 'custom',
                component: () => import('@/views/marketing/customFormExpand/custom'),
                meta: { title: '自定义表单', hidden: true, permission: ['custom'] },
              },
              {
                path: '/marketing/customFormExpand/dataInfo',
                name: 'dataInfo',
                component: () => import('@/views/marketing/customFormExpand/dataInfo'),
                meta: { title: '数据详情', hidden: true, permission: ['dataInfo'] },
              }
            ]
          },
          {
            path: '/finance/wage_settlement',
            name: 'wage_settlement',
            component: () => import('@/views/finance/wage_settlement'),
            meta: { title: '工资结算',keepAlive:true, icon: pointSvg, permission: ['wage_settlement'] },
            redirect: '/finance/wageSettlementExpand/payslip',
            hideChildrenInMenu: true,
            children:[
              {
                path: '/finance/wageSettlementExpand/payslip',
                name: 'payslip',
                component: () => import('@/views/finance/wageSettlementExpand/payslip'),
                meta: { title: '工资条',keepAlive:true, hidden: true, permission: ['payslip'] }
              },
              {
                path: '/finance/wageSettlementExpand/payslip_info/:id',
                name: 'payslip_info',
                component: () => import('@/views/finance/wageSettlementExpand/payslip_info'),
                meta: { title: '结算记录详情', hidden: true, permission: ['payslip_info'] }
              },
              {
                path: '/finance/wageSettlementExpand/set_wage_info',
                name: 'set_wage_info',
                component: () => import('@/views/finance/wageSettlementExpand/set_wage_info'),
                meta: { title: '设置员工工资详情', hidden: true, permission: ['set_wage_info'] }
              },
              {
                path: '/finance/wageSettlementExpand/achievements',
                name: 'achievements',
                component: () => import('@/views/finance/wageSettlementExpand/achievements'),
                meta: { title: '绩效管理', hidden: true, permission: ['achievements'] }
              },
              {
                path: '/finance/wageSettlementExpand/add_settlement/:type',
                name: 'add_settlement',
                component: () => import('@/views/finance/wageSettlementExpand/add_settlement'),
                meta: { title: '新建工资结算', hidden: true, permission: ['add_settlement'] }
              },
              {
                path: '/finance/wageSettlementExpand/set_wage',
                name: 'set_wage',
                component: () => import('@/views/finance/wageSettlementExpand/set_wage'),
                meta: { title: '设置员工工资', hidden: true, permission: ['set_wage'] }
              }
            ]
          },
          // {
          //   path: '/appCenter/cardClockIn',
          //   name: 'cardClockIn',
          //   component: () => import('@/views/appCenter/cardClockIn'),
          //   meta: { title: '刷卡考勤', icon: pointSvg, hideHeader: true, permission: ['cardClockIn'] },
          //   redirect: '/appCenter/cardClockInExpand/byCard',
          //   hideChildrenInMenu: true,
          //   children: [
          //     {
          //       path: '/appCenter/cardClockInExpand/byCard',
          //       name: 'byCard',
          //       component: () => import('@/views/appCenter/cardClockInExpand/byCard'),
          //       meta: { title: '考勤打卡', hidden: true, permission: ['byCard'] }
          //     },
          //     {
          //       path: '/appCenter/cardClockInExpand/byCardList',
          //       name: 'byCardList',
          //       component: () => import('@/views/appCenter/cardClockInExpand/byCardList'),
          //       meta: { title: '考勤记录', hidden: true, permission: ['byCardList'] }
          //     }
          //   ]
          // },
          
        ]
      },
    ]
  },
  {
    path: '*',
    redirect: '/404',
    hidden: true
  },
  {
    path: 'loading',
    redirect: '/loading',
    hidden: true
  },

]

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/user',
    component: UserLayout,
    redirect: '/user/login',
    hidden: true,
    meta: { title: '登录' },
    children: [
      {
        path: 'login',
        name: 'login',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Login'),
        meta: { title: '登录' }
      },

      {
        path: 'register',
        name: 'register',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/Register'),
      },
      {
        path: 'register-result',
        name: 'registerResult',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/RegisterResult')
      },
      {
        path: 'recover',
        name: 'recover',
        component: () => import(/* webpackChunkName: "user" */ '@/views/user/recover'),
        meta: { title: '找回密码' }
      },

    ]
  },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  },
  {
    path: '/loading',
    name: 'loading',
    component: () => import(/* webpackChunkName: "user" */ '@/views/user/loading'),
  },
  {
    path: '/appCenter/faceClockIn',
    name: 'faceClockIn',
    component: () => import('@/views/appCenter/faceClockIn'),
    meta: { title: '人脸考勤', hidden: true, permission: ['faceClockIn'] },
    hidden: true
  },
]
